using SheLife.Domain.Common;

namespace SheLife.Domain.Entities
{
    /// <summary>
    /// 社区帖子统计实体类
    /// </summary>
    public class CommunityPostStatistics : BaseEntity
    {
        /// <summary>
        /// 帖子ID
        /// </summary>
        public Guid PostId { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        public int ViewCount { get; set; } = 0;

        /// <summary>
        /// 点赞次数
        /// </summary>
        public int LikeCount { get; set; } = 0;

        /// <summary>
        /// 评论次数
        /// </summary>
        public int CommentCount { get; set; } = 0;

        /// <summary>
        /// 收藏次数
        /// </summary>
        public int FavoriteCount { get; set; } = 0;

        /// <summary>
        /// 分享次数
        /// </summary>
        public int ShareCount { get; set; } = 0;

        /// <summary>
        /// 统计日期
        /// </summary>
        public DateTime StatisticsDate { get; set; } = DateTime.UtcNow;

        // 导航属性
        public virtual CommunityPost? Post { get; set; }
    }
}